SimplePay\Core\Transaction\TransactionObserver B

Total Complexity 82
Dependencies 5
Dependents 1
Total lines 1,022
Lines of code 603
Logical lines of code 204
Comment lines 302
Methods 16
Properties 2

Methods 16

Method Rating Maintainability Complexity Lines of code
update_on_checkout_session()
A
39 13 68
add_on_invoice()
A
42 9 55
add_on_payment_intent()
A
41 8 61
update_on_invoice()
A
42 8 56
update_on_checkout_session_lite()
A
42 6 54
add_on_multiple_line_invoice()
A
44 6 48
maybe_increment_stock()
S
50 7 29
update_on_multiple_line_invoice()
S
48 5 35
maybe_decrement_stock()
S
52 5 24
update_on_failed()
S
53 4 24
add_refund_log()
S
47 3 38
get_subscribed_events()
S
46 2 44
update_on_payment_intent()
S
57 3 18
add_on_subscription()
S
54 1 23
add_on_checkout_session()
S
54 1 22
__construct()
S
77 1 4